import { defineStore } from 'pinia'
export const testStore = defineStore('main', {
  state: () => {
    return {
      name: 'xxx',
    }
  },
  getters: {
    getUser(state) {
      return state.name
    },
  },
  actions: {
    changeUser(name: string) {
      this.name = name
    },
  },
})